@extends('layouts.homebase')
@section('tdk')
<title>{{$tdk['title']}}</title>
<meta name="keywords" content="{{$tdk['keywords']}}" />
<meta name="description" content="{{$tdk['description']}}" />
@endsection
@section('css')
@parent
<link rel="stylesheet" type="text/css" href="">
@endsection
@section('content')

<main>
  <div class="lbox">
    <div class="weizhi">您现在的位置是：<a href="{{request()->schemeAndHttpHost()}}" class="classlinkclass">首页</a> > 
	<a href="/search/" class="classlinkclass">搜索列表</a> @if($keyboard) > {{ $keyboard }} @endif
	</div>
    <div class="blogs_search">
      <div class="xt_search">系统搜索到以下文章符合<strong>{{$keyboard}}</strong>的查询结果</div>    
      <ul>
	  @foreach($latestarts as $art)
		<li>
			<h2><a href="/detail/{{$art['art_id']}}.html" target="_blank">{{$loop->iteration}}. {{$art['title']}}</a></h2>
			<p>{{ delcontent_html($art['content']) }}</p>
			<span class="color_green">{{request()->schemeAndHttpHost()}}/detail/{{$art['art_id']}}.html - {{$art['created_at']}}</span> - 
			<a class="color_purple" href="/{{array_column($cats,null,'cat_id')[$art['cat_id']]['pinyin']}}/" target="_blank">{{array_column($cats,null,'cat_id')[$art['cat_id']]['catname']}}</a>
		</li>
	   @endforeach	
      </ul>
    </div>
	<style>
	.pagination{text-align: center;}
	.page-item{display: inline-block!important;padding:0 10px;line-height: 28px!important;margin-right: 8px;border: 1px #ddd solid;}
	.active{color: #16499d;}
	</style>
	{{ $latestarts->onEachSide(-1)->links('pagination::bootstrap-4') }}

  </div>
  <aside class="rbox">
    <div class="ad">
		<a href="/" target="_blank">
		<img src="/skin/html/images/ad2.jpg" alt="广告位">
		</a>
	</div>
    <div class="hot_news">
      <p class="h_title">文章热榜</p>
      <ul>
	  	@foreach($hotarts as $art)
		<li><a href="/detail/{{$art['art_id']}}.html" title="{{$art['title']}}" target="_blank">{{$art['title']}}</a></li>
		@endforeach	
	</ul>
    </div>
  </aside>
</main>

@endsection
@section('js')
@parent
<script></script> 
@endsection







